/* 基础样式 */
body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f5f7fa;
    margin: 0;
    padding: 0;
    color: #333;
}
/* 顶部卡片导航 - 整行显示 */
.content-header{
    display: none;
}
.main-footer{
    display: none;
}
.full-row-cards {
    background: #fff;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    width: 100%;
}

/* 状态卡片样式 */
.status-card {
    border-radius: 4px;
    color: white;
    padding: 10px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 70px;
}

.status-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.status-card .inner h3 {
    font-size: 22px;
    font-weight: bold;
    margin: 0 0 5px 0;
    white-space: nowrap;
    color: #fff;
}

.status-card .inner p {
    font-size: 12px;
    margin: 0;
    color: #fff;
}

.status-card .icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 38px;
    opacity: 0.2;
    transition: all 0.3s;
}

.status-card:hover .icon {
    opacity: 0.4;
}

/* 搜索和筛选区域 */
.search-filter-row {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.search-box {
    flex: 0 0 89%;
}

.workshop-dropdown {
    flex: 0 0 8.5%;
}

/* 工序流程区域 */
.workflow-container {
    display: flex;
    gap: 10px;
    /*padding: 0 15px;*/
    align-items: flex-start;
}

.workflow-section {
    flex: 1;
}

.form-control{
    text-align: center;
}

h4 {
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
}

.process-list-container {
    width: 100%;
    height: calc(100vh - 135px);
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 5px;
    background-color: #f9f9f9;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .cards-container {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .status-card .inner h3 {
        font-size: 18px;
    }

    .status-card .inner p {
        font-size: 12px;
    }

    .status-card .icon {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .search-filter-row {
        flex-direction: column;
        gap: 10px;
    }

    .search-box, .workshop-dropdown {
        flex: 0 0 100%;
    }
}

.process-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.process-item {
    background: white;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
    transition: all 0.3s;
}
/* 待维修特有样式 */
.process-content {
    display: flex;
    flex-direction: column;
}

.process-info-right {
    display: flex;
    justify-content: space-between;
}

/* 钣金拆解特有样式 */
.metal-item .process-content {
    display: flex;
}

.metal-item .process-left {
    /*width: 80px;*/
    border-right: 1px dashed #eee;
}

.metal-item .process-right {
    flex: 1;
}

.waiting-time {
    color: #ff5722;
    font-weight: bold;
    font-size: 10px;
    margin-bottom: 5px;
}

/* 结算特有样式 */
.process-amount {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
    font-size: 13px;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 4px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
    justify-content: center;
}

.action-buttons .btn {
    padding: 2px 4px !important;
    font-size: 11px;
    height: 28px;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .workflow-container {
        flex-direction: column;
    }

    .process-list-container {
        height: auto;
        max-height: 300px;
    }
}

.process-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.process-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.process-code {
    font-weight: bold;
    color: #333;
    font-size: 12px;
    float: left;
}

.process-parts {
    background: #f0f0f0;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
    float: right;
}

.process-plate{
    font-size: 14px;
    color: #000;
    font-weight: bold;
}

.process-manager-font{
    font-size: 15px;
    margin-top: 20px;
}

.process-code-parts{
    overflow: hidden;
}

.process-dates {
    /*display: flex;*/
    /*justify-content: space-between;*/
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-container {
    background: white;
    border-radius: 4px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow: auto;
}

.modal-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

.modal-body {
    padding: 15px;
}

/* 响应式调整 */
@media (max-width: 1600px) {
    .status-card {
        width: 100px;
    }

    .status-card .inner h3 {
        font-size: 18px;
    }

    .status-card .inner p {
        font-size: 12px;
    }

    .status-card .icon {
        font-size: 28px;
    }
}

.create-work-order-box{
    text-align: center
}

.create-work-order-box button{
    background: #3F51B5;
    color: #ffffff;
    border-radius: 3px;
    border: 0;
    padding: 7px;
    text-align: center;
    width: 130px;
    margin-bottom: 15px;
}

.process-content-left{
    width: 45px;
    height: 100px;
    float: left;
}

/*.el-radio-group{*/
    /*width: 42%!important;*/
/*}*/

/*.el-radio-group .el-radio{*/
    /*float: left;*/
    /*width: 30%;*/
/*}*/

/*.el-radio-group .el-radio .el-radio__input{*/
    /*float: left;*/
    /*margin-right: 5px;*/
/*}*/
/*.el-radio-group .el-radio .el-radio__input .el-radio__label{*/
    /*float: left;*/
/*}*/

.count-badge {
    display: inline-block;
    background: #e74c3c;
    color: white;
    border-radius: 10px;
    padding: 2px 10px;
    font-size: 12px;
    margin-left: 8px;
    font-weight: normal;
}

.metal-section {
    margin-bottom: 15px;
    height: calc(50% - 10px); /* 将高度分为两半 */
}

.metal-section:first-child {
    margin-bottom: 15px;
}

.metal-section:last-child {
    margin-bottom: 0;
}

/* 调整列表容器高度 */
.workflow-section .process-list-container {
    height: calc(100vh - 320px); /* 减少高度 */
}

/* 待维修保持原有高度 */
.workflow-section:nth-child(1) .process-list-container {
    height: calc(100vh - 140px);
}

/* 钣金拆解父容器 */
.workflow-section:nth-child(n+2) {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 105px); /* 与待维修同高 */
}


/* 钣金拆解专用列表样式 */
.metal-list {
    height: calc(100% - 30px) !important; /* 减去标题和间距高度 */
    overflow-y: auto;
}

/* 确保内部内容不会溢出 */
.metal-list .process-list {
    max-height: 100%;
    /*overflow: hidden;*/
}

/* 新增钣金整形组样式 */
.workflow-section-group {
    display: flex;
    gap: 15px;
    width: 100%;
}

.workflow-section-group > .workflow-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 250px);
}

/* 调整金属加工模块高度 */
.metal-section {
    height: calc(50% - 10px);
    margin-bottom: 15px;

}

.metal-section:last-child {
    margin-bottom: 0;
}

/* 钣金整形特定样式 */
.process-item.shaping-item {
    border-left-color: #9b59b6; /* 紫色边框区分 */
}

/* 响应式调整 */
@media (max-width: 1600px) {
    .workflow-section-group {
        flex-direction: column;
    }

    .workflow-section-group > .workflow-section {
        height: auto;
    }

    .metal-section {
        height: auto;
        max-height: 310px;
    }
}



.workflow-system {
    display: flex;
    height: calc(100vh - 75px);
    padding: 1px;
    gap: 5px;
    overflow-x: auto
}

.fixed-module {
    width: 300px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    padding: 5px;
}

.scrollable-modules {
    display: flex;
    /*overflow-x: auto;*/
    gap: 5px;
    flex: 1;
    scrollbar-width: none;
}

.module-group {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.process-module {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    padding: 5px;
    height: calc(50% - 8px);
}

/* 模块颜色区分 */
.module-disassembly { border-left: 4px solid #e74c3c; }
.module-shaping { border-left: 4px solid #9b59b6; }
.module-priming { border-left: 4px solid #3498db; }
.module-painting { border-left: 4px solid #2ecc71; }
.module-reassembly { border-left: 4px solid #f1c40f; }
.module-polishing { border-left: 4px solid #1abc9c; }
.module-electrical { border-left: 4px solid #e67e22; }

/* 响应式设计 */
@media (max-width: 1600px) {
    .fixed-module { width: 270px; }
    .module-group { width: 265px; }
}


.content .content-wrapper{padding: 7rem 1.5rem 0;}
.col-md-12{padding: 0!important;}
.navbar-fixed-top .content-wrapper {
    padding-top: 5rem;
}

/* 新增右侧固定模块容器 */
.right-fixed-modules {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 新增右侧固定模块容器 */
.right-fixed-modules {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 左侧固定模块 */
.fixed-module {
    width: 300px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

/* 可滚动模块区 */
.scrollable-modules {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    flex: 1;
    padding-bottom: 15px;
    scrollbar-width: thin;
    scrollbar-color: #3498db #f1f1f1;
}

/* 模块组 */
.module-group {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ebeef5;
    overflow: hidden;
}

.options-group {
    display: flex;
    gap: 15px;
    float: left;
}

.button-group {
    display: flex;
    gap: 10px;
    float: right;
    overflow: hidden;
}

.box-card {
    margin-bottom: 20px;
}

.car-model {
    position: relative;
    height: 400px;
    background-color: #f5f7fa;
    border-radius: 4px;
    background-image: url(https://cdn.sdxinyuehai.com/image/da74fbaa28c61f2850d000614886cf4d.jpg);
    background-size: 70% 90%;
    background-repeat: no-repeat;
    background-position: center center;
}

.car-top, .car-front, .car-left, .car-right, .car-rear, .car-bottom, .car-other {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

.car-left {
    top: 160px;
    left: 10px;
    width: 60px;
    height: 90px;
}

.car-right {
    top: 160px;
    right: 10px;
    width: 60px;
    height: 90px;
}

.car-rear {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 60px;
}

.car-bottom {
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 60px;
}

.el-checkbox__inner{
    width: 18px !important;
    height: 18px !important;
}

.car-other {
    bottom: 20px;
    right: 20px;
    width: 80px;
    height: 40px;
}

.summary {
    margin-top: 15px;
    padding: 10px;
    background-color: #f5f7fa;
    border-radius: 4px;
    font-size: 14px;
}

.summary p {
    margin: 5px 0;
}

.limitation-input{
    width: 75%!important;
}

.customer-phone-input{
    width: 75%!important;
}
.el-checkbox__input.is-checked+.el-checkbox__label{
    color: red!important;
}
.el-checkbox__input.is-checked .el-checkbox__inner, .el-checkbox__input.is-indeterminate .el-checkbox__inner{
    background-color: red !important;
    border-color: red !important;
}

.car-model {
    position: relative;
    height: 500px;
    background-color: #f5f7fa;
    border-radius: 4px;
}

.car-area {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.car-top {
    top: 250px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 60px;
}

.car-front {
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 60px;
}

.el-table th.el-table__cell>.cell{
    font-size: 12px;
    text-align: center;
    padding: 0!important;
}

.el-table td.el-table__cell div{
    text-align: center;
}

.status-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.status-button {
    margin: 5px;
    min-width: 120px;
    height: 60px;
    font-size: 14px;
}

.box-card {
    margin-bottom: 20px;
}

.technician-info {
    margin-top: 20px;
}

.technician-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.technician-card {
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.technician-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.technician-card.is-selected {
    border: 2px solid #409EFF;
    background-color: #f5f9ff;
}

.tech-info {
    display: flex;
    align-items: center;
    padding: 10px;
}

.tech-avatar {
    margin-right: 15px;
}

.tech-details {
    flex: 1;
}

.tech-details h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.tech-details p {
    margin: 3px 0;
    font-size: 13px;
    color: #666;
}

.action-buttons {
    margin-top: 20px;
    text-align: center;
}

.technician-list .el-radio-group {
    width: 100%;
}

.technician-list .el-radio {
    width: 100%;
    display: block;
}

.technician-list .el-radio__label {
    width: 100%;
    display: block;
    padding-left: 0;
}

.technician-list .tech-details h4{
    text-align: left !important;
}

.el-button+.el-button, .el-checkbox.is-bordered+.el-checkbox.is-bordered{
    margin-left: 0!important;
}

.is-rework-font{
    color: #e74c3c;
    font-size: 14px;
}

.el-dialog__body{
    padding: 10px 20px !important;
}

.el-col-16{
    height: 500px;
    overflow: auto !important;
}

.el-checkbox__inner::after{
    height: 11px !important;
    left: 7px !important;
}

@media (max-width: 1200px) {
    .workflow-system { flex-direction: column; height: auto; }
    .fixed-module, .scrollable-modules { width: auto; }
    .scrollable-modules { flex-direction: column; overflow-x: visible; }
    /*处理手机端适配*/
    .module-group { width: auto!important;}
    /*.process-module { width: calc(50% - 8px); height: auto; }*/
    .el-col-6{width: auto!important;}
    .action-bar{display: inherit!important;}
    .el-col-12{width: 100%!important;}
    .el-col-8{width: 100%!important;}
    .el-col-16{width: 100%!important;}
    .el-table{font-size: 10px !important;}
    .el-dialog__body {padding: 0px 5px !important;}
    .el-dialog{width: 98% !important;}
    .action-bar .options-group .el-checkbox{margin-right: 10px;}
    .action-bar .options-group{line-height: 2;margin-left: 20px;}
    .action-bar .el-button--small{float: left}
    .el-message-box{width: 360px !important;}
    .button-group{margin-top: 15px}
    .el-card__body, .el-main{padding: 0 !important;}
    .el-table__body, .el-table__footer, .el-table__header{width: 65px !important;}
}